export function axios({
  url,
  data={},
  header={},
  method='get'
}){
  return new Promise((resolve,reject)=>{
    wx.request({
      url,
      header,
      success:res=>{
        resolve(res)
      },
      fail:error=>{
        reject(error)
      }
    })
  })
}